package com.shensi.api.admin.client.fallback.customer;

import com.shensi.api.admin.client.customer.CardExcelImportClient;
import com.shensi.api.admin.client.customer.CustomerCardRecordConsumptionClient;
import feign.hystrix.FallbackFactory;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author: budian
 * @since: 2023/12/12
 */
@Slf4j
@Component
public class CustomerCardRecordConsumptionClientFallBack implements FallbackFactory<CustomerCardRecordConsumptionClient> {
    @Setter
    private Throwable cause;

    @Override
    public CustomerCardRecordConsumptionClient create(Throwable throwable) {
        log.error("微服务接口调用失败： {}", throwable.getMessage());
        return null;
    }
}
